<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="security" %>
<%@ taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="images/css.css" rel="stylesheet" type="text/css">
<script type="text/javascript">
	function FCKeditor_OnComplete(editorInstance) {
		window.status = editorInstance.Description;
	}
</script>
<script type="text/javascript">

	function checkForm() {
		var newstopic = document.getElementById("newstopic").value;
		var fckContent = document.getElementById("fckContent").value;
				
		if (newstopic == 0) {
			alert("请输入公告标题！");
			return false;
		}
		if (fckContent == 0) {
			alert("请输入公告内容！");
			return false;
		}
	}
</script>
</head>
<body>
<html:form action="newsAdmin.do?method=save" method="post" onsubmit="return checkForm();">
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="tableline" id="Table1"
				style="FONT-SIZE: 12px">
    <tr>
      <td height="40" colspan="2" align="center" bgcolor="#FFFFFF" class="bl"><font face="宋体" class="STYLE4">报名公告管理</font></td>
    </tr>
     <tr>
      <td width="114" height="50" align="right" bgcolor="#FFFFFF" class="bl"><font face="宋体"><font id="FONT1" face="宋体" >标题:</font></font></td>
      <td bgcolor="#FFFFFF" class="bm">
       &nbsp;<html:text property="newstopic" size="100"/><font color="red">${newsTopicError }</font> </td>
    </tr>
    <tr>
      <td width="114" align="right" bgcolor="#FFFFFF" class="bl"><font face="宋体"><font id="FONT1" face="宋体" >正文:</font></font></td>
      <td valign="top" height="400" bgcolor="#FFFFFF" class="bm"><FCK:editor instanceName="fckContent" height="390" value=" "/>
      <font color="red">${newsContentError }</font>
      </td>
    </tr>
    <tr>
      <td height="30" colspan="2" align="center" bgcolor="#FFFFFF" class="bl">
      <html:submit value="增加" />&nbsp;<html:reset value="重置" /></td>
    </tr>
  </table>
</html:form>
</body>
</html>